package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarTypeParamMapper;
import com.whq.entity.CarTypeParam;
import com.whq.service.CarTypeParamService;

@Service(value = "tcCarTypeParamService")
public class CarTypeParamServiceImpl implements CarTypeParamService {

    @Autowired
    private CarTypeParamMapper<CarTypeParam>tcCarTypeParamMapper;
    
    @Override
    public Integer insertSelective(CarTypeParam tcCarTypeParam) throws Exception {
           return this.tcCarTypeParamMapper.insertSelective(tcCarTypeParam);
        }

    @Override
    public Integer insertBatch(List<CarTypeParam> tcCarTypeParam) throws Exception {
           return this.tcCarTypeParamMapper.insertBatch(tcCarTypeParam) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcCarTypeParamMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcCarTypeParamMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarTypeParam tcCarTypeParam) {
           return this.tcCarTypeParamMapper.updateByPrimaryKeySelective(tcCarTypeParam);
    }

    @Override
    public CarTypeParam findById(Object id) {
           return (CarTypeParam) this.tcCarTypeParamMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarTypeParam> selectByCondition(CarTypeParam tcCarTypeParam) {
           return (List<CarTypeParam>) this.tcCarTypeParamMapper.selectByCondition(tcCarTypeParam);
    }

    @Override
    public Integer selectCountByCondition(CarTypeParam tcCarTypeParam) {
           return  this.tcCarTypeParamMapper.selectCountByCondition(tcCarTypeParam);
    }

}
